import request from "@/utils/request";

// 登录
export const login = (data) => {
  return request({
    url: 'user/login',
    method: 'post',
    data
  })
}

// 退出登录
export const logout = () => {
  return request({
    url: 'user/logout',
    method: 'get'
  })
}

// 修改
export const update = (data) => {
  return request({
    url: 'user/reset',
    method: 'post',
    data
  })
}

export const view = () => {
  return request({
    url: 'user/view'
  })
}